package poler.control
{
	import com.adobe.cairngorm.control.FrontController;
	
	import poler.control.command.*;
	import poler.control.events.*;

	public class FController extends FrontController
	{
		
		public function FController()
		{
			//Generic Salesforce Events
			addCommand(LoginEvent.EVENT_LOGIN, LoginCmd);
			addCommand(SelectEvent.EVENT_SELECT, SelectCmd);
			addCommand(CreateEvent.EVENT_CREATE, CreateCmd);
			addCommand(UpdateEvent.EVENT_UPDATE, UpdateCmd);
			addCommand(DeleteEvent.EVENT_DELETE, DeleteCmd);
			addCommand(Save64Event.EVENT_SAVE64, Save64Cmd);
			
			//View specific events
			addCommand(View1Event.EVENT_VIEW1,View1Cmd);
		}
		
	}
}